package cmd

import (
	"fmt"
	"os"

	"github.com/spf13/cobra"
)

var (
	Version    string = "v1.0.0"
	versionCmd        = &cobra.Command{
		Use:     "version",
		Short:   "help  webhook for prometheus alert to dingding ",
		Long:    `webhook-cli  version`,
		Example: `webhkook -v`,
		Run: func(cmd *cobra.Command, args []string) {

			fmt.Printf("webhook version is %s \n", Version)

			os.Exit(0)
		},
	}
)
